﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace 数字华容道
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            棋盘.重置棋盘();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            棋盘.重置棋盘();
        }

        private void btn3_Click(object sender, RoutedEventArgs e)
        {
            棋盘.Num = 3;
            棋盘.重置棋盘();
        }

        private void btn4_Click(object sender, RoutedEventArgs e)
        {
            棋盘.Num = 4;
            棋盘.重置棋盘();
        }

        private void btn5_Click(object sender, RoutedEventArgs e)
        {
            棋盘.Num = 5;
            棋盘.重置棋盘();
        }

        private void btn6_Click(object sender, RoutedEventArgs e)
        {
            棋盘.Num = 6;
            棋盘.重置棋盘();
        }

        private void btn7_Click(object sender, RoutedEventArgs e)
        {
            棋盘.Num = 7;
            棋盘.重置棋盘();
        }

        private void btn8_Click(object sender, RoutedEventArgs e)
        {
            棋盘.Num = 8;
            棋盘.重置棋盘();
        }
    }
}